package edu.nuc.event.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    private int id;//用户的编号ID
    private int useraccount;//用户登录账户
    private String username;//用户的名字
    private String userpassword;//用户的密码
    private String usergender;//用户的性别
    private String userunit;//用户的工作单位
    private Long userphone;//用户的电话
    private String useremail;//用户的邮箱
    private int usertype;//用户的类别：0-系统管理员 1-赛事管理员 2-评委 3-学生
    private int cpid;//可以使空值：赛事管理员管理的赛事，学生参加的赛事，系统管理员为空值，与赛事表主键现对应

    private Competition com;//赛事实体
    private Match match;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", useraccount=" + useraccount +
                ", username='" + username + '\'' +
                ", userpassword='" + userpassword + '\'' +
                ", usergender='" + usergender + '\'' +
                ", userunit='" + userunit + '\'' +
                ", userphone=" + userphone +
                ", useremail='" + useremail + '\'' +
                ", usertype=" + usertype +
                ", cpid=" + cpid +
                '}' + "\n";
    }
}
